country_decisions = {

	form_roman_empire_byz = {
		major = yes
		potential = {
			tag = BYZ
			NOT = { exists = ROW }
			NOT = { exists = ROM }
		}
		allow = {
			owns = 118
			owns = 121
			owns = 124
			owns = 104
			owns = 136
			is_core = 118
			is_core = 121
			is_core = 124
			is_core = 104
			is_core = 136
		}
		effect = {
			change_tag = ROM
			add_prestige = 50
			set_country_flag = rome_formed
			swap_free_idea_group = yes
		}
		ai_will_do = {
			factor = 1
		}
	}

	form_roman_empire_row = {
		major = yes
		potential = {
			tag = ROW
			NOT = { exists = ROM }
			NOT = { exists = BYZ }
		}
		allow = {
			is_subject = no
			is_at_war = no
			owns = 118
			owns = 121
			owns = 124
			owns = 151
			owns = 149
			owns = 146
			is_core = 118
			is_core = 121
			is_core = 124
			is_core = 151
			is_core = 149
			is_core = 146
		}
		effect = {
			change_tag = ROM
			add_prestige = 50
			set_country_flag = rome_formed
		}
		ai_will_do = {
			factor = 1
		}
	}

	mend_schism = {
		major = yes
		potential = {
			religion = orthodox
			NOT = { has_country_flag = schism_mender }
			any_province = { religion = catholic }
			NOT = {
				any_country = {
					religion = catholic
					num_of_cities = 35
				}
			}
			OR = {
				owns = 118
				owns = 151
				owns = 377
				owns = 379
				owns = 358
			}
		}
		allow = {
			is_subject = no
			is_at_war = no
			NOT = { exists = PAP }
			owns = 118
			owns = 151
			owns = 377
			owns = 379
			owns = 358
			118 = { religion = orthodox }
			151 = { religion = orthodox }
			377 = { religion = orthodox }
			379 = { religion = orthodox }
			358 = { religion = orthodox }
		}
		effect = {
			set_country_flag = schism_mender
			add_prestige = 25
			hidden_effect = {
				every_country = {
					limit = {
						religion = catholic
					}
					country_event = {
						id = et.10
						days = 1
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	mend_schism_catholic = {
		major = yes
		potential = {
			religion = catholic
			NOT = { has_country_flag = schism_mender }
			any_province = { religion = orthodox }
			NOT = {
				any_country = {
					religion = orthodox
					num_of_cities = 25
				}
			}
			OR = {
				owns = 118
				owns = 151
				owns = 377
				owns = 379
				owns = 358
			}
		}
		allow = {
			is_subject = no
			is_at_war = no
			owns = 118
			owns = 151
			owns = 377
			owns = 379
			owns = 358
			118 = { religion = catholic }
			151 = { religion = catholic }
			377 = { religion = catholic }
			379 = { religion = catholic }
			358 = { religion = catholic }
		}
		effect = {
			set_country_flag = schism_mender
			add_prestige = 25
			hidden_effect = {
				every_country = {
					limit = {
						religion = orthodox
					}
					country_event = {
						id = et.89
						days = 1
					}
				}
			}
		}
		ai_will_do = {
			factor = 1
		}
	}

	division_of_rome = {
		major = yes
		potential = {
			tag = ROM
			NOT = { has_country_flag = rome_divided }
			NOT = { has_country_flag = rome_formed }
		}
		allow = {
			owns = 118
			owns = 151
			is_at_war = no
		}
		effect = {
			add_stability = 1
			add_adm_power = 50
			add_dip_power = 50
			add_mil_power = 50
			country_event = {
				id = et.18
				days = 1
			}
			set_country_flag = rome_divided
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { has_country_modifier = empire_fragmenting }
				NOT = { has_country_modifier = empire_collapsing }
				NOT = { has_country_modifier = total_collapse }
			}
		}
	}

	declare_pax_romana = {
		potential = {
			tag = ROM
			NOT = { has_country_modifier = pax_romana }
			NOT = { has_country_modifier = total_collapse }
			NOT = { has_country_flag = rome_formed }
		}
		allow = {
			NOT = { num_of_revolts = 2 }
			stability = 1
			is_at_war = no
			NOT = { war_exhaustion = 2 }
		}
		effect = {
			add_country_modifier = {
				name = "pax_romana"
				duration = -1
			}
			add_country_modifier = {
				name = country_restabilized
				duration = 1825
			}
			if = {
				limit = { has_country_modifier = empire_destabilized }
				remove_country_modifier = empire_destabilized
			}
			if = {
				limit = { has_country_modifier = empire_declining }
				remove_country_modifier = empire_declining
				add_country_modifier = {
					name = empire_destabilized
					duration = -1
				}
			}
			if = {
				limit = { has_country_modifier = empire_fragmenting }
				remove_country_modifier = empire_fragmenting
				add_country_modifier = {
					name = empire_declining
					duration = -1
				}
			}
			if = {
				limit = { has_country_modifier = empire_collapsing }
				remove_country_modifier = empire_collapsing
				add_country_modifier = {
					name = empire_fragmenting
					duration = -1
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { has_country_modifier = empire_destabilized }
				NOT = { has_country_modifier = empire_declining }
				NOT = { has_country_modifier = empire_fragmenting }
				NOT = { has_country_modifier = empire_collapsing }
				NOT = { has_country_modifier = total_collapse }
			}
		}
	}

	end_pax_romana = {
		potential = {
			has_country_modifier = pax_romana
			NOT = { has_country_modifier = empire_collapsing }
		}
		allow = {
			always = yes
		}
		effect = {
			remove_country_modifier = pax_romana
			add_stability = -2
			if = {
				limit = { has_country_modifier = empire_fragmenting }
				remove_country_modifier = empire_fragmenting
				add_country_modifier = {
					name = empire_collapsing
					duration = -1
				}
			}
			if = {
				limit = { has_country_modifier = empire_declining }
				remove_country_modifier = empire_declining
				add_country_modifier = {
					name = empire_fragmenting
					duration = -1
				}
			}
			if = {
				limit = { has_country_modifier = empire_destabilized }
				remove_country_modifier = empire_destabilized
				add_country_modifier = {
					name = empire_declining
					duration = -1
				}
			}
			if = {
				limit = { 
					NOT = { has_country_modifier = empire_destabilized }
					NOT = { has_country_modifier = empire_declining }
					NOT = { has_country_modifier = empire_fragmenting }
					NOT = { has_country_modifier = empire_collapsing }
					NOT = { has_country_modifier = total_collapse }
				}
				add_country_modifier = {
					name = empire_destabilized
					duration = -1
				}
			}
		}
		ai_will_do = {
			factor = 0
		}
	}

	restore_byzantium = {
		major = yes
		potential = {
			NOT = { exists = BYZ }
			primary_culture = greek
			OR = {
				tag = NCA
				tag = TRE
				tag = THS
				tag = EPI
				tag = MOE
			}
		}
		allow = {
			is_subject = no
			is_at_war = no
			NOT = { exists = LAT }
			owns = 151
			is_core = 151
		}
		effect = {
			change_tag = BYZ
			add_prestige = 25
			swap_free_idea_group = yes
		}
		ai_will_do = {
			factor = 1
		}
	}

	roman_technology_reform = {
		major = yes
		potential = {
			technology_group = roman_group
		}
		allow = {
			is_at_war = no
			stability = 2
			adm_tech = 46
			adm_power = 100
		}
		effect = {
			add_adm_power = -100
			add_stability = -2
			change_technology_group = eastern
			change_unit_type = eastern
		}
		ai_will_do = {
			factor = 1
		}
	}

	roman_government_reform = {
		major = yes
		potential = {
			government = imperial_roman_republic
		}
		allow = {
			is_at_war = no
			stability = 1
			adm_tech = 12
			adm_power = 200
			faction_in_power = imperials
		}
		effect = {
			add_adm_power = -200
			add_stability = -1
			change_government = despotic_monarchy
		}
		ai_will_do = {
			factor = 1
		}
	}
	
	reestablish_the_roman_republic = {
		major = yes
		potential = {
			government = imperial_roman_republic
		}
		allow = {
			is_at_war = no
			stability = 1
			adm_power = 200
			faction_in_power = senators
		}
		effect = {
			add_adm_power = -200
			add_stability = -2
			change_government = roman_republic
			kill_ruler = yes
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ban_christianity = {
		potential = {
			OR = {
				tag = ROM
				tag = ROW
				tag = BYZ
			}
			religion = hellenism
			NOT = { has_country_modifier = christianity_banned }
		}
		allow = {
			religion = hellenism
			any_owned_province = { religion = chalcedonism }
			adm_power = 50
		}
		effect = {
			add_adm_power = -50
			add_country_modifier = {
				name = christianity_banned
				duration = -1
			}
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	legalize_christianity = {
		potential = {
			has_country_modifier = christianity_banned
		}
		allow = {
			has_country_modifier = christianity_banned
			adm_power = 50
		}
		effect = {
			add_adm_power = -50
			remove_country_modifier = christianity_banned
		}
		ai_will_do = {
			factor = 1
		}
	}
}